package com.wavehi.data_access_mybatis.service.impl;

import com.wavehi.data_access_mybatis.domain.User;
import com.wavehi.data_access_mybatis.mapper.UserMapper;
import com.wavehi.data_access_mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author WaveHi
 * @Date 18/11/2021 下午 10:23
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAllUsers() {
        return userMapper.selectAll();
    }
}
